package com.ffsky.litepack.demo;


import com.ffsky.litepack.demo.app.AppModule;
import com.gitee.hljdrl.lite.app.AppInterface;
import com.gitee.hljdrl.lite.app.LiteApplication;
import com.gitee.hljdrl.lite.config.AppConf;
import com.gitee.hljdrl.utils.os.BuildConfigUtil;

public class YouApplication extends LiteApplication {


    @Override
    public void onCreateStart() {
        super.onCreateStart();
        //三方推送sdk....
    }

    @Override
    public void onAppCreate() {
        //APP主进程
    }

    @Override
    public void onCreateChannel() {
        //推送辅助进程
    }

    @Override
    protected void onAppEnv() {
    }

    @Override
    protected AppConf buildAppConf() {
        return new AppConf(BuildConfig.DEBUG,
                getString(R.string.app_name),
                BuildConfig.APPLICATION_ID,
                BuildConfig.VERSION_CODE,
                BuildConfig.VERSION_NAME,
                BuildConfigUtil.forValue(BuildConfig.class));
    }

    @Override
    protected AppInterface buildAppInterface() {
        return new AppModule();
    }

}
